package Dag.is;
class Stu{
    public static String name;
    public static int age;

//   private String name;
//   private int age;

//   private void Stu1(){
//       Student sc=new Student();
//       sc.a();
//       setName("海燕");
//       setAge(1000);
//   }
//   public Stu(){
//       Stu1();
//   }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
public class Student {
    public void a(){
        System.out.println(123);
    }


    public static void main2(String[] args) {
        Stu ok=new Stu();
        System.out.println(ok.getAge());
        System.out.println(ok.getName());
    }

//    private Student(){
//        System.out.println("Yes");
//        Stu sc=new Stu();
//        sc.setAge(10);
//        sc.setName("赵德柱");
//    }

    public static void main1(String[] args) {
Stu student=new Stu();
        System.out.println(student.getAge());
        System.out.println(student.getName());
    }
}
